{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}/Users/gwf25/Desktop/cornell_analysis.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res} 7 Dec 2015, 10:06:01

{com}. do "/Users/gwf25/Dropbox/research/religion/final code/cornell_analysis.do"
{txt}
{com}. clear all
{txt}
{com}. set mem 50m
{txt}(51200k)

{com}. set more off
{txt}
{com}. 
. insheet using "/Users/gwf25/Dropbox/research/religion/final code/cornell_identity.txt"
{txt}(62 vars, 1311 obs)

{com}. 
. 
. ************************************************************************************
. ***treatment indicator should be the same across RAs
. rename religiontreatmentorcontroltc treatR
{txt}
{com}. tab treatR

   {txt}religion {c |}
  treatment {c |}
 or control {c |}
      (T/C) {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          C {c |}{res}        605       46.22       46.22
         {txt}NA {c |}{res}          1        0.08       46.29
          {txt}R {c |}{res}         83        6.34       52.64
          {txt}T {c |}{res}        620       47.36      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}      1,309      100.00
{txt}
{com}. drop if treatR == "NA"
{txt}(1 observation deleted)

{com}. replace treatR = "T" if treatR == "R"
{txt}(83 real changes made)

{com}. tab treatR 

   {txt}religion {c |}
  treatment {c |}
 or control {c |}
      (T/C) {c |}      Freq.     Percent        Cum.
{hline 12}{c +}{hline 35}
          C {c |}{res}        605       46.25       46.25
          {txt}T {c |}{res}        703       53.75      100.00
{txt}{hline 12}{c +}{hline 35}
      Total {c |}{res}      1,308      100.00
{txt}
{com}. ************************************************************************************
. 
. ************************************************************************************
. 
. ************************************************************************************
. 
. 
. ************************************************************************************
. 
. ************************************************************************************
. 
. 
. 
. 
. 
. 
. ************************************************************************************
. ***make all identity categories lowercase
. *iunique1 should not have duplicate categories due to capitalization
. tab iunique1

                               {txt}iUnique1 {c |}      Freq.     Percent        Cum.
{hline 40}{c +}{hline 35}
                       Age or age group {c |}{res}         12        0.92        0.92
{txt}Arts in general (visual art, music, the {c |}{res}         13        1.00        1.92
                       {txt}Athletics/sports {c |}{res}         18        1.38        3.31
 {txt}Birthplace/hometown/place of residence {c |}{res}          7        0.54        3.84
                       {txt}Environmentalism {c |}{res}          1        0.08        3.92
{txt}Food and drink (excluding beer and liqu {c |}{res}          1        0.08        4.00
                                 {txt}Gender {c |}{res}        697       53.57       57.57
                            {txt}Human being {c |}{res}          9        0.69       58.26
       {txt}Mental feature/personality trait {c |}{res}        115        8.84       67.10
    {txt}Nationality/ethnicity/race/language {c |}{res}         98        7.53       74.63
   {txt}Non-family non-romantic relationship {c |}{res}          5        0.38       75.02
{txt}Non-professional interest/dislike/activ {c |}{res}          9        0.69       75.71
        {txt}Non-spousal family relationship {c |}{res}         31        2.38       78.09
                                  {txt}Other {c |}{res}          6        0.46       78.55
                       {txt}Physical feature {c |}{res}          8        0.61       79.17
                  {txt}Political orientation {c |}{res}          1        0.08       79.25
       {txt}Professional interest/profession {c |}{res}         17        1.31       80.55
     {txt}Religion, morality, and philosophy {c |}{res}         57        4.38       84.93
                     {txt}Sexual orientation {c |}{res}          3        0.23       85.17
                    {txt}Socioeconomic class {c |}{res}          1        0.08       85.24
{txt}Student (e.g. Cornell, major, year in s {c |}{res}        181       13.91       99.15
                                  {txt}other {c |}{res}          2        0.15       99.31
{txt}student (e.g. Cornell, major, year in s {c |}{res}          9        0.69      100.00
{txt}{hline 40}{c +}{hline 35}
                                  Total {c |}{res}      1,301      100.00
{txt}
{com}. foreach var of varlist iunique1{c -(}
{txt}  2{com}. replace iunique1 = lower(`var')
{txt}  3{com}. {c )-}
{txt}(1299 real changes made)

{com}. tab iunique1

                               {txt}iUnique1 {c |}      Freq.     Percent        Cum.
{hline 40}{c +}{hline 35}
                       age or age group {c |}{res}         12        0.92        0.92
{txt}arts in general (visual art, music, the {c |}{res}         13        1.00        1.92
                       {txt}athletics/sports {c |}{res}         18        1.38        3.31
 {txt}birthplace/hometown/place of residence {c |}{res}          7        0.54        3.84
                       {txt}environmentalism {c |}{res}          1        0.08        3.92
{txt}food and drink (excluding beer and liqu {c |}{res}          1        0.08        4.00
                                 {txt}gender {c |}{res}        697       53.57       57.57
                            {txt}human being {c |}{res}          9        0.69       58.26
       {txt}mental feature/personality trait {c |}{res}        115        8.84       67.10
    {txt}nationality/ethnicity/race/language {c |}{res}         98        7.53       74.63
   {txt}non-family non-romantic relationship {c |}{res}          5        0.38       75.02
{txt}non-professional interest/dislike/activ {c |}{res}          9        0.69       75.71
        {txt}non-spousal family relationship {c |}{res}         31        2.38       78.09
                                  {txt}other {c |}{res}          8        0.61       78.71
                       {txt}physical feature {c |}{res}          8        0.61       79.32
                  {txt}political orientation {c |}{res}          1        0.08       79.40
       {txt}professional interest/profession {c |}{res}         17        1.31       80.71
     {txt}religion, morality, and philosophy {c |}{res}         57        4.38       85.09
                     {txt}sexual orientation {c |}{res}          3        0.23       85.32
                    {txt}socioeconomic class {c |}{res}          1        0.08       85.40
{txt}student (e.g. cornell, major, year in s {c |}{res}        190       14.60      100.00
{txt}{hline 40}{c +}{hline 35}
                                  Total {c |}{res}      1,301      100.00
{txt}
{com}. 
. *iunique2 should not have duplicate categories due to capitalization
. tab iunique2

                               {txt}iUnique2 {c |}      Freq.     Percent        Cum.
{hline 40}{c +}{hline 35}
                       Age or age group {c |}{res}         34        2.65        2.65
{txt}Arts in general (visual art, music, the {c |}{res}         34        2.65        5.30
                       {txt}Athletics/sports {c |}{res}         47        3.67        8.97
 {txt}Birthplace/hometown/place of residence {c |}{res}         16        1.25       10.22
                       {txt}Clothing/fashion {c |}{res}          1        0.08       10.30
                       {txt}Environmentalism {c |}{res}          7        0.55       10.84
{txt}Food and drink (excluding beer and liqu {c |}{res}          6        0.47       11.31
                                 {txt}Gender {c |}{res}        170       13.26       24.57
                            {txt}Human being {c |}{res}          9        0.70       25.27
                         {txt}Leisure travel {c |}{res}          2        0.16       25.43
       {txt}Mental feature/personality trait {c |}{res}         86        6.71       32.14
    {txt}Nationality/ethnicity/race/language {c |}{res}        160       12.48       44.62
   {txt}Non-family non-romantic relationship {c |}{res}         26        2.03       46.65
{txt}Non-professional interest/dislike/activ {c |}{res}         21        1.64       48.28
        {txt}Non-spousal family relationship {c |}{res}         57        4.45       52.73
                                  {txt}Other {c |}{res}          8        0.62       53.35
{txt}Partying/nightclubs/bars (including bee {c |}{res}          2        0.16       53.51
                       {txt}Physical feature {c |}{res}         31        2.42       55.93
                  {txt}Political orientation {c |}{res}          1        0.08       56.01
       {txt}Professional interest/profession {c |}{res}         32        2.50       58.50
     {txt}Religion, morality, and philosophy {c |}{res}         55        4.29       62.79
           {txt}Romantic relationship/status {c |}{res}          8        0.62       63.42
                     {txt}Sexual orientation {c |}{res}          5        0.39       63.81
                    {txt}Socioeconomic class {c |}{res}          6        0.47       64.27
{txt}Specific work of non-religious art or a {c |}{res}          1        0.08       64.35
{txt}Student (e.g. Cornell, major, year in s {c |}{res}        425       33.15       97.50
                                  {txt}other {c |}{res}          2        0.16       97.66
{txt}student (e.g. Cornell, major, year in s {c |}{res}         30        2.34      100.00
{txt}{hline 40}{c +}{hline 35}
                                  Total {c |}{res}      1,282      100.00
{txt}
{com}. foreach var of varlist iunique2{c -(}
{txt}  2{com}. replace iunique2 = lower(`var')
{txt}  3{com}. {c )-}
{txt}(1280 real changes made)

{com}. tab iunique2

                               {txt}iUnique2 {c |}      Freq.     Percent        Cum.
{hline 40}{c +}{hline 35}
                       age or age group {c |}{res}         34        2.65        2.65
{txt}arts in general (visual art, music, the {c |}{res}         34        2.65        5.30
                       {txt}athletics/sports {c |}{res}         47        3.67        8.97
 {txt}birthplace/hometown/place of residence {c |}{res}         16        1.25       10.22
                       {txt}clothing/fashion {c |}{res}          1        0.08       10.30
                       {txt}environmentalism {c |}{res}          7        0.55       10.84
{txt}food and drink (excluding beer and liqu {c |}{res}          6        0.47       11.31
                                 {txt}gender {c |}{res}        170       13.26       24.57
                            {txt}human being {c |}{res}          9        0.70       25.27
                         {txt}leisure travel {c |}{res}          2        0.16       25.43
       {txt}mental feature/personality trait {c |}{res}         86        6.71       32.14
    {txt}nationality/ethnicity/race/language {c |}{res}        160       12.48       44.62
   {txt}non-family non-romantic relationship {c |}{res}         26        2.03       46.65
{txt}non-professional interest/dislike/activ {c |}{res}         21        1.64       48.28
        {txt}non-spousal family relationship {c |}{res}         57        4.45       52.73
                                  {txt}other {c |}{res}         10        0.78       53.51
{txt}partying/nightclubs/bars (including bee {c |}{res}          2        0.16       53.67
                       {txt}physical feature {c |}{res}         31        2.42       56.08
                  {txt}political orientation {c |}{res}          1        0.08       56.16
       {txt}professional interest/profession {c |}{res}         32        2.50       58.66
     {txt}religion, morality, and philosophy {c |}{res}         55        4.29       62.95
           {txt}romantic relationship/status {c |}{res}          8        0.62       63.57
                     {txt}sexual orientation {c |}{res}          5        0.39       63.96
                    {txt}socioeconomic class {c |}{res}          6        0.47       64.43
{txt}specific work of non-religious art or a {c |}{res}          1        0.08       64.51
{txt}student (e.g. cornell, major, year in s {c |}{res}        455       35.49      100.00
{txt}{hline 40}{c +}{hline 35}
                                  Total {c |}{res}      1,282      100.00
{txt}
{com}. 
. *iunique3 should not have duplicate categories due to capitalization
. tab iunique3

                               {txt}iUnique3 {c |}      Freq.     Percent        Cum.
{hline 40}{c +}{hline 35}
                       Age or age group {c |}{res}         42        3.40        3.40
{txt}Arts in general (visual art, music, the {c |}{res}         48        3.89        7.29
                       {txt}Athletics/sports {c |}{res}         62        5.02       12.31
 {txt}Birthplace/hometown/place of residence {c |}{res}         44        3.56       15.87
                       {txt}Clothing/fashion {c |}{res}          6        0.49       16.36
                       {txt}Environmentalism {c |}{res}          9        0.73       17.09
{txt}Food and drink (excluding beer and liqu {c |}{res}          8        0.65       17.73
                                 {txt}Gender {c |}{res}        109        8.83       26.56
                            {txt}Human being {c |}{res}         13        1.05       27.61
                         {txt}Leisure travel {c |}{res}          4        0.32       27.94
       {txt}Mental feature/personality trait {c |}{res}        118        9.55       37.49
    {txt}Nationality/ethnicity/race/language {c |}{res}        188       15.22       52.71
   {txt}Non-family non-romantic relationship {c |}{res}         28        2.27       54.98
{txt}Non-professional interest/dislike/activ {c |}{res}         28        2.27       57.25
        {txt}Non-spousal family relationship {c |}{res}         75        6.07       63.32
                                  {txt}Other {c |}{res}          4        0.32       63.64
{txt}Partying/nightclubs/bars (including bee {c |}{res}          2        0.16       63.81
                       {txt}Physical feature {c |}{res}         51        4.13       67.94
                  {txt}Political orientation {c |}{res}         10        0.81       68.74
       {txt}Professional interest/profession {c |}{res}         62        5.02       73.77
     {txt}Religion, morality, and philosophy {c |}{res}         49        3.97       77.73
           {txt}Romantic relationship/status {c |}{res}         20        1.62       79.35
                     {txt}Sexual orientation {c |}{res}          5        0.40       79.76
                    {txt}Socioeconomic class {c |}{res}          5        0.40       80.16
{txt}Student (e.g. Cornell, major, year in s {c |}{res}        217       17.57       97.73
                                  {txt}other {c |}{res}          4        0.32       98.06
{txt}student (e.g. Cornell, major, year in s {c |}{res}         24        1.94      100.00
{txt}{hline 40}{c +}{hline 35}
                                  Total {c |}{res}      1,235      100.00
{txt}
{com}. foreach var of varlist iunique3{c -(}
{txt}  2{com}. replace iunique3 = lower(`var')
{txt}  3{com}. {c )-}
{txt}(1231 real changes made)

{com}. tab iunique3

                               {txt}iUnique3 {c |}      Freq.     Percent        Cum.
{hline 40}{c +}{hline 35}
                       age or age group {c |}{res}         42        3.40        3.40
{txt}arts in general (visual art, music, the {c |}{res}         48        3.89        7.29
                       {txt}athletics/sports {c |}{res}         62        5.02       12.31
 {txt}birthplace/hometown/place of residence {c |}{res}         44        3.56       15.87
                       {txt}clothing/fashion {c |}{res}          6        0.49       16.36
                       {txt}environmentalism {c |}{res}          9        0.73       17.09
{txt}food and drink (excluding beer and liqu {c |}{res}          8        0.65       17.73
                                 {txt}gender {c |}{res}        109        8.83       26.56
                            {txt}human being {c |}{res}         13        1.05       27.61
                         {txt}leisure travel {c |}{res}          4        0.32       27.94
       {txt}mental feature/personality trait {c |}{res}        118        9.55       37.49
    {txt}nationality/ethnicity/race/language {c |}{res}        188       15.22       52.71
   {txt}non-family non-romantic relationship {c |}{res}         28        2.27       54.98
{txt}non-professional interest/dislike/activ {c |}{res}         28        2.27       57.25
        {txt}non-spousal family relationship {c |}{res}         75        6.07       63.32
                                  {txt}other {c |}{res}          8        0.65       63.97
{txt}partying/nightclubs/bars (including bee {c |}{res}          2        0.16       64.13
                       {txt}physical feature {c |}{res}         51        4.13       68.26
                  {txt}political orientation {c |}{res}         10        0.81       69.07
       {txt}professional interest/profession {c |}{res}         62        5.02       74.09
     {txt}religion, morality, and philosophy {c |}{res}         49        3.97       78.06
           {txt}romantic relationship/status {c |}{res}         20        1.62       79.68
                     {txt}sexual orientation {c |}{res}          5        0.40       80.08
                    {txt}socioeconomic class {c |}{res}          5        0.40       80.49
{txt}student (e.g. cornell, major, year in s {c |}{res}        241       19.51      100.00
{txt}{hline 40}{c +}{hline 35}
                                  Total {c |}{res}      1,235      100.00
{txt}
{com}. 
. *iunique4 should not have duplicate categories due to capitalization
. tab iunique4

                               {txt}iUnique4 {c |}      Freq.     Percent        Cum.
{hline 40}{c +}{hline 35}
                       Age or age group {c |}{res}         36        3.36        3.36
{txt}Arts in general (visual art, music, the {c |}{res}         48        4.49        7.85
                       {txt}Athletics/sports {c |}{res}         49        4.58       12.43
 {txt}Birthplace/hometown/place of residence {c |}{res}         53        4.95       17.38
                       {txt}Clothing/fashion {c |}{res}          1        0.09       17.48
                       {txt}Environmentalism {c |}{res}          5        0.47       17.94
{txt}Food and drink (excluding beer and liqu {c |}{res}          6        0.56       18.50
                                 {txt}Gender {c |}{res}         64        5.98       24.49
                            {txt}Human being {c |}{res}         11        1.03       25.51
                         {txt}Leisure travel {c |}{res}          1        0.09       25.61
       {txt}Mental feature/personality trait {c |}{res}        145       13.55       39.16
    {txt}Nationality/ethnicity/race/language {c |}{res}        121       11.31       50.47
   {txt}Non-family non-romantic relationship {c |}{res}         49        4.58       55.05
{txt}Non-professional interest/dislike/activ {c |}{res}         35        3.27       58.32
        {txt}Non-spousal family relationship {c |}{res}         87        8.13       66.45
                                  {txt}Other {c |}{res}         19        1.78       68.22
{txt}Partying/nightclubs/bars (including bee {c |}{res}          2        0.19       68.41
                       {txt}Physical feature {c |}{res}         61        5.70       74.11
                  {txt}Political orientation {c |}{res}         14        1.31       75.42
       {txt}Professional interest/profession {c |}{res}         47        4.39       79.81
     {txt}Religion, morality, and philosophy {c |}{res}         53        4.95       84.77
           {txt}Romantic relationship/status {c |}{res}         18        1.68       86.45
                     {txt}Sexual orientation {c |}{res}         14        1.31       87.76
                    {txt}Socioeconomic class {c |}{res}          7        0.65       88.41
{txt}Student (e.g. Cornell, major, year in s {c |}{res}        110       10.28       98.69
                                  {txt}other {c |}{res}          5        0.47       99.16
{txt}student (e.g. Cornell, major, year in s {c |}{res}          9        0.84      100.00
{txt}{hline 40}{c +}{hline 35}
                                  Total {c |}{res}      1,070      100.00
{txt}
{com}. foreach var of varlist iunique4{c -(}
{txt}  2{com}. replace iunique4 = lower(`var')
{txt}  3{com}. {c )-}
{txt}(1065 real changes made)

{com}. tab iunique4

                               {txt}iUnique4 {c |}      Freq.     Percent        Cum.
{hline 40}{c +}{hline 35}
                       age or age group {c |}{res}         36        3.36        3.36
{txt}arts in general (visual art, music, the {c |}{res}         48        4.49        7.85
                       {txt}athletics/sports {c |}{res}         49        4.58       12.43
 {txt}birthplace/hometown/place of residence {c |}{res}         53        4.95       17.38
                       {txt}clothing/fashion {c |}{res}          1        0.09       17.48
                       {txt}environmentalism {c |}{res}          5        0.47       17.94
{txt}food and drink (excluding beer and liqu {c |}{res}          6        0.56       18.50
                                 {txt}gender {c |}{res}         64        5.98       24.49
                            {txt}human being {c |}{res}         11        1.03       25.51
                         {txt}leisure travel {c |}{res}          1        0.09       25.61
       {txt}mental feature/personality trait {c |}{res}        145       13.55       39.16
    {txt}nationality/ethnicity/race/language {c |}{res}        121       11.31       50.47
   {txt}non-family non-romantic relationship {c |}{res}         49        4.58       55.05
{txt}non-professional interest/dislike/activ {c |}{res}         35        3.27       58.32
        {txt}non-spousal family relationship {c |}{res}         87        8.13       66.45
                                  {txt}other {c |}{res}         24        2.24       68.69
{txt}partying/nightclubs/bars (including bee {c |}{res}          2        0.19       68.88
                       {txt}physical feature {c |}{res}         61        5.70       74.58
                  {txt}political orientation {c |}{res}         14        1.31       75.89
       {txt}professional interest/profession {c |}{res}         47        4.39       80.28
     {txt}religion, morality, and philosophy {c |}{res}         53        4.95       85.23
           {txt}romantic relationship/status {c |}{res}         18        1.68       86.92
                     {txt}sexual orientation {c |}{res}         14        1.31       88.22
                    {txt}socioeconomic class {c |}{res}          7        0.65       88.88
{txt}student (e.g. cornell, major, year in s {c |}{res}        119       11.12      100.00
{txt}{hline 40}{c +}{hline 35}
                                  Total {c |}{res}      1,070      100.00
{txt}
{com}. 
. *iunique5 should not have duplicate categories due to capitalization
. tab iunique5

                               {txt}iUnique5 {c |}      Freq.     Percent        Cum.
{hline 40}{c +}{hline 35}
                       Age or age group {c |}{res}         32        4.95        4.95
{txt}Arts in general (visual art, music, the {c |}{res}         18        2.78        7.73
                       {txt}Athletics/sports {c |}{res}         36        5.56       13.29
 {txt}Birthplace/hometown/place of residence {c |}{res}         24        3.71       17.00
                       {txt}Clothing/fashion {c |}{res}          1        0.15       17.16
                       {txt}Environmentalism {c |}{res}          4        0.62       17.77
{txt}Food and drink (excluding beer and liqu {c |}{res}          7        1.08       18.86
                                 {txt}Gender {c |}{res}         28        4.33       23.18
                            {txt}Human being {c |}{res}          8        1.24       24.42
                         {txt}Leisure travel {c |}{res}          3        0.46       24.88
       {txt}Mental feature/personality trait {c |}{res}        118       18.24       43.12
    {txt}Nationality/ethnicity/race/language {c |}{res}         52        8.04       51.16
   {txt}Non-family non-romantic relationship {c |}{res}         49        7.57       58.73
{txt}Non-professional interest/dislike/activ {c |}{res}         22        3.40       62.13
        {txt}Non-spousal family relationship {c |}{res}         47        7.26       69.40
                                  {txt}Other {c |}{res}          6        0.93       70.32
                       {txt}Physical feature {c |}{res}         40        6.18       76.51
                  {txt}Political orientation {c |}{res}         16        2.47       78.98
       {txt}Professional interest/profession {c |}{res}         23        3.55       82.53
     {txt}Religion, morality, and philosophy {c |}{res}         32        4.95       87.48
           {txt}Romantic relationship/status {c |}{res}         16        2.47       89.95
                     {txt}Sexual orientation {c |}{res}         12        1.85       91.81
                    {txt}Socioeconomic class {c |}{res}         10        1.55       93.35
{txt}Specific work of non-religious art or a {c |}{res}          2        0.31       93.66
{txt}Student (e.g. Cornell, major, year in s {c |}{res}         36        5.56       99.23
                                  {txt}other {c |}{res}          3        0.46       99.69
{txt}student (e.g. Cornell, major, year in s {c |}{res}          2        0.31      100.00
{txt}{hline 40}{c +}{hline 35}
                                  Total {c |}{res}        647      100.00
{txt}
{com}. foreach var of varlist iunique5{c -(}
{txt}  2{com}. replace iunique5 = lower(`var')
{txt}  3{com}. {c )-}
{txt}(644 real changes made)

{com}. tab iunique5

                               {txt}iUnique5 {c |}      Freq.     Percent        Cum.
{hline 40}{c +}{hline 35}
                       age or age group {c |}{res}         32        4.95        4.95
{txt}arts in general (visual art, music, the {c |}{res}         18        2.78        7.73
                       {txt}athletics/sports {c |}{res}         36        5.56       13.29
 {txt}birthplace/hometown/place of residence {c |}{res}         24        3.71       17.00
                       {txt}clothing/fashion {c |}{res}          1        0.15       17.16
                       {txt}environmentalism {c |}{res}          4        0.62       17.77
{txt}food and drink (excluding beer and liqu {c |}{res}          7        1.08       18.86
                                 {txt}gender {c |}{res}         28        4.33       23.18
                            {txt}human being {c |}{res}          8        1.24       24.42
                         {txt}leisure travel {c |}{res}          3        0.46       24.88
       {txt}mental feature/personality trait {c |}{res}        118       18.24       43.12
    {txt}nationality/ethnicity/race/language {c |}{res}         52        8.04       51.16
   {txt}non-family non-romantic relationship {c |}{res}         49        7.57       58.73
{txt}non-professional interest/dislike/activ {c |}{res}         22        3.40       62.13
        {txt}non-spousal family relationship {c |}{res}         47        7.26       69.40
                                  {txt}other {c |}{res}          9        1.39       70.79
                       {txt}physical feature {c |}{res}         40        6.18       76.97
                  {txt}political orientation {c |}{res}         16        2.47       79.44
       {txt}professional interest/profession {c |}{res}         23        3.55       83.00
     {txt}religion, morality, and philosophy {c |}{res}         32        4.95       87.94
           {txt}romantic relationship/status {c |}{res}         16        2.47       90.42
                     {txt}sexual orientation {c |}{res}         12        1.85       92.27
                    {txt}socioeconomic class {c |}{res}         10        1.55       93.82
{txt}specific work of non-religious art or a {c |}{res}          2        0.31       94.13
{txt}student (e.g. cornell, major, year in s {c |}{res}         38        5.87      100.00
{txt}{hline 40}{c +}{hline 35}
                                  Total {c |}{res}        647      100.00
{txt}
{com}. 
. *iunique6 should not have duplicate categories due to capitalization
. tab iunique6

                          {txt}iUnique6 {c |}      Freq.     Percent        Cum.
{hline 35}{c +}{hline 35}
                  Age or age group {c |}{res}          1       11.11       11.11
                  {txt}Athletics/sports {c |}{res}          1       11.11       22.22
   {txt}Non-spousal family relationship {c |}{res}          2       22.22       44.44
                             {txt}Other {c |}{res}          2       22.22       66.67
             {txt}Political orientation {c |}{res}          1       11.11       77.78
{txt}Religion, morality, and philosophy {c |}{res}          1       11.11       88.89
      {txt}Romantic relationship/status {c |}{res}          1       11.11      100.00
{txt}{hline 35}{c +}{hline 35}
                             Total {c |}{res}          9      100.00
{txt}
{com}. foreach var of varlist iunique6{c -(}
{txt}  2{com}. replace iunique6 = lower(`var')
{txt}  3{com}. {c )-}
{txt}(9 real changes made)

{com}. tab iunique6

                          {txt}iUnique6 {c |}      Freq.     Percent        Cum.
{hline 35}{c +}{hline 35}
                  age or age group {c |}{res}          1       11.11       11.11
                  {txt}athletics/sports {c |}{res}          1       11.11       22.22
   {txt}non-spousal family relationship {c |}{res}          2       22.22       44.44
                             {txt}other {c |}{res}          2       22.22       66.67
             {txt}political orientation {c |}{res}          1       11.11       77.78
{txt}religion, morality, and philosophy {c |}{res}          1       11.11       88.89
      {txt}romantic relationship/status {c |}{res}          1       11.11      100.00
{txt}{hline 35}{c +}{hline 35}
                             Total {c |}{res}          9      100.00
{txt}
{com}. 
. *iunique7 should not have duplicate categories due to capitalization
. tab iunique7

                           {txt}iUnique7 {c |}      Freq.     Percent        Cum.
{hline 36}{c +}{hline 35}
Nationality/ethnicity/race/language {c |}{res}          1      100.00      100.00
{txt}{hline 36}{c +}{hline 35}
                              Total {c |}{res}          1      100.00
{txt}
{com}. foreach var of varlist iunique7{c -(}
{txt}  2{com}. replace iunique7 = lower(`var')
{txt}  3{com}. {c )-}
{txt}(1 real change made)

{com}. tab iunique7

                           {txt}iUnique7 {c |}      Freq.     Percent        Cum.
{hline 36}{c +}{hline 35}
nationality/ethnicity/race/language {c |}{res}          1      100.00      100.00
{txt}{hline 36}{c +}{hline 35}
                              Total {c |}{res}          1      100.00
{txt}
{com}. ************************************************************************************
. 
. 
. 
. 
. ************************************************************************************
. ***look for treatment effects for each identity category
. gen identstr = ""
{txt}(1310 missing values generated)

{com}. 
. *Religion, morality, and philosophy
. count if iunique1 == "religion, morality, and philosophy" | iunique2 == "religion, morality, and philosophy" | iunique3 == "religion, morality, and philosophy" | iunique4 == "religion, morality, and philosophy" | iunique5 == "religion, morality, and philosophy" | iunique6 == "religion, morality, and philosophy" | iunique7 == "religion, morality, and philosophy"
{res}  247
{txt}
{com}. 
. count if (iunique1 == "religion, morality, and philosophy" | iunique2 == "religion, morality, and philosophy" | iunique3 == "religion, morality, and philosophy" | iunique4 == "religion, morality, and philosophy" | iunique5 == "religion, morality, and philosophy" | iunique6 == "religion, morality, and philosophy" | iunique7 == "religion, morality, and philosophy") & treatR == "T" 
{res}  139
{txt}
{com}. //139
. count if (iunique1 == "religion, morality, and philosophy" | iunique2 == "religion, morality, and philosophy" | iunique3 == "religion, morality, and philosophy" | iunique4 == "religion, morality, and philosophy" | iunique5 == "religion, morality, and philosophy" | iunique6 == "religion, morality, and philosophy" | iunique7 == "religion, morality, and philosophy") & treatR == "C"
{res}  108
{txt}
{com}. //108
. count if iunique1 ~= "" & treatR == "T" //697
{res}  697
{txt}
{com}. 
. di 139/697 //.199
{res}.19942611
{txt}
{com}. 
. count if iunique1 ~= "" & treatR == "C" //604
{res}  604
{txt}
{com}. 
. di 108/604 //.179
{res}.17880795
{txt}
{com}. 
. prtesti 697 .199 604 .179

{txt}Two-sample test of proportion                      {res}x{txt}: Number of obs = {res}     697
                                                   y{txt}: Number of obs = {res}     604
{txt}{hline 13}{c TT}{hline 64}
    Variable {c |}{col 22}Mean{col 29}Std. Err.{col 44}z{col 49}P>|z|{col 59}[95% Conf. Interval]
{hline 13}{c +}{hline 64}
{col 12}x{col 14}{c |}{res}{col 17}     .199{col 28} .0151226{col 58} .1693603{col 70} .2286397
           {txt}y {c |}{res}{col 17}     .179{col 28} .0155984{col 58} .1484277{col 70} .2095723
{txt}{hline 13}{c +}{hline 64}
        diff {c |}{res}{col 17}      .02{col 28} .0217256{col 58}-.0225814{col 70} .0625814
{txt}{col 14}{c |}{col 17}under Ho:{res}{col 28} .0217958{col 38}    0.92{col 49}0.359
{txt}{hline 13}{c BT}{hline 64}
        diff = prop({res}x{txt}) - prop({res}y{txt})                                  z = {res}  0.9176
{txt}    Ho: diff = 0

    Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(Z < z) = {res}0.8206         {txt}Pr(|Z| < |z|) = {res}0.3588          {txt}Pr(Z > z) = {res}0.1794
{txt}
{com}. 
{txt}end of do-file

{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}/Users/gwf25/Desktop/cornell_analysis.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res} 7 Dec 2015, 10:06:08
{txt}{.-}
{smcl}
{txt}{sf}{ul off}